package baduga.core;


public class Core_Exception extends Exception {

	/** Konstruktory */
	public Core_Exception() { super(); };
	public Core_Exception(String msg){super(msg);};
	public Core_Exception(String msg, Throwable cause) {super(msg, cause); };
	public Core_Exception(Throwable cause) {super(cause); };
	
	
	/**
	 * Klasa wyświetla komunikat w formie graficznej lub do konsoli.
	 * 
	 * 0 - GuI
	 * 1 - Tekst
	 * 
	 * @param type
	 */
	public void showMessage(final int type)
	{
		if(type == 0)
		{
			
		}
		else
			System.out.println(super.getMessage());
			
	}
	
	
	/**
	 * Klasa do debugowania. Nie wiem czy ma sens, ale niech sobie siedzi.
	 * 
	 * 0 - GuI
	 * 1 - Tekst
	 * 
	 * @param type
	 */
	public void showMessageDebug(final int type)
	{

	}
	
	
	
}
